<?php

class Front_Form_ResetRequire extends Zend_Form
{
    public function init() {
        parent::init();
        
        $this->setMethod('post');
        
        $this->setAction('/front/register/reset');

        $username = new Zend_Form_Element_Text('username');  
        $username->setLabel('Username:')  
                ->setAttrib('placeholder', 'Username')
                ->setRequired(true)
                ->addValidator('StringLength', false, array(6, 32))
                ;
      
        $email = new Zend_Form_Element_Text('email');
        $email->setLabel('Email:')
                ->setAttrib('placeholder', 'email')
                ->setRequired(true)
                ->addValidator('EmailAddress')
                ;

        $submit = new Zend_Form_Element_Submit('Submit');  
        $submit->setLabel('Submit');  
      
        $reset = new Zend_Form_Element_Reset('Reset');  
        $reset->setLabel('Reset');  
      
        $this->addElement($username)  
                ->addElement($email)
                ->addElement($submit)
                ->addElement($reset);
        
    }
}
